const http = require('http')

const server = http.createServer((request, response) => {
  // response.statusCode = 203
  // response.statusCode = 404
  // response.statusMessage = 'iloveyou'
  // response.setHeader('content-type', 'text/html;charset=utf-8')
  // response.setHeader('Server', 'Node.js')
  // response.setHeader('myHeader', 'text yexy yexy')
  // response.setHeader('test', ['a', 'b', 'c'])
  response.write('love')
  response.write('love')
  response.write('love')
  response.write('love')
  response.end('love')
})

server.listen(9000, () => {
  console.log('服务已经启动了')
})
